//
//  PairChat.h
//  HiQ
//
//  Created by maxwell pang on 12-7-24.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Connection.h"
#import "ChatDelegate.h"
#import "ConnectionDelegate.h"
#import "PacketDispathCenter.h"

@interface PairChat : NSObject
{
    id<ChatDelegate> delegate;
    Connection* connection;
    NSUInteger peerQQ;
    NSUInteger ownQQ;
}
@property (nonatomic,strong) id<ChatDelegate> delegate;
@property NSUInteger peerQQ;

- (void) sendMsg:(NSString *)msg;

//- (id)initWithHost:(NSString*)host andPort:(int)port;
-(id) initWithQQ:(NSUInteger)pQQ ownQQ:(NSUInteger)oQQ;
-(void) packetHandler:(NSString *)msg;

@end
